import useClipboard from "vue-clipboard3";
const { toClipboard } = useClipboard();
export default async (Msg: string) => {
  try {
    await toClipboard(Msg + "");
    message.success("复制成功");
  } catch (e: any) {
    message.error(e.message);
  }
};
